﻿<Window x:Class="ClimateControl.Client.View.SettingsView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:p="clr-namespace:ClimateControl.Client.Properties"
        xmlns:controls="clr-namespace:ClimateControl.Controls;assembly=ClimateControl.Controls"
        controls:WindowBehavior.Closed="{Binding SaveCommand}"
        Title="Climate Control Settings" Height="110" Width="210" ResizeMode="NoResize" WindowStyle="ToolWindow"
        Icon="/Images/thermometer.ico"
        Left="{Binding Source={x:Static p:Settings.Default}, Path=SettingsLeft, Mode=TwoWay}"
        Top="{Binding Source={x:Static p:Settings.Default}, Path=SettingsTop, Mode=TwoWay}">
    <Grid>
        <StackPanel VerticalAlignment="Bottom">
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
                <TextBlock Text="Service Location" Margin="0 0 8 0" VerticalAlignment="Center" Width="90"/>
                <TextBox Width="85" Height="23" Text="{Binding Source={x:Static p:Settings.Default}, Path=ServiceLocation}" VerticalContentAlignment="Bottom" />
            </StackPanel>
            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0 5 0 0">
                <TextBlock Text="Always On Top" Margin="0 0 8 0" VerticalAlignment="Center" Width="90" />
                <CheckBox IsChecked="{Binding Source={x:Static p:Settings.Default}, Path=AlwaysOnTop}" Width="85" VerticalAlignment="Bottom"/>
            </StackPanel>
            <TextBlock Margin="0 5 14 7" HorizontalAlignment="Right" Cursor="Hand" >
                <Hyperlink Command="{Binding OpenLogCommand}">Logs...</Hyperlink>
            </TextBlock>
        </StackPanel>

    </Grid>
</Window>
